package com.supplychain.scm.core.common.version.enums;

import lombok.AllArgsConstructor;

import java.util.Arrays;
import java.util.Objects;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ClientType
 * @createTime 12:11:00 2023/01/05
 */
@AllArgsConstructor
public enum ClientType {
    /**
     *
     */
    WECHAT_APPLET("微信小程序"),
    ANDROID("安卓"),
    IOS("ios");

    private String desc;

    public static ClientType getClientType(String clientType){
        return Arrays.stream(ClientType.values()).filter(type -> Objects.equals(clientType,type.name())).findFirst().orElse(null);
    }
}
